package com.jsj.subway.ai.demo.service;

import com.jsj.subway.ai.demo.dto.ChatDTO;
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Deque;

public interface DemoService {

    Deque<ChatDTO.MessageRecord> getMessageRecord(Long sessionId);
    String begin(Integer key);


    public ChatDTO.MessageRecord sessionChatByStream(ChatDTO.MessageRequest messageRequest);
    public ChatDTO.MessageRecord sessionChat(ChatDTO.MessageRequest messageRequest);

    public SseEmitter connect(HttpServletRequest request,HttpServletResponse response);

    public SseEmitter connect(HttpServletResponse response);

    String getUrlByContent(String content);

}
